function [SleepSpindle] = CheckIfSleepSpindle(Frequency, Duration, LowFreqRange, HighFreqRange, MinimumThresholdTime)

    for i = 1 : length(Frequency)
        if Duration < MinimumThresholdTime
            SleepSpindle(i) = 0;
        else
            if Frequency(i) > LowFreqRange && Frequency(i) < HighFreqRange
                SleepSpindle(i) = 1;
            else
                SleepSpindle(i) = 0;
            end
        end
    end
end